<!-- 我的视频 -->

<template>
  <div class="ParkingRealtime-MyVideo full">
    <MyList />
    <!-- <video src="https://jrjpic.jrjkg.com.cn/dixiacheku.mp4" controls="controls" autoplay="autoplay" loop="loop" />
    <video src="https://jrjpic.jrjkg.com.cn/churukou.mp4" controls="controls" autoplay="autoplay" loop="loop" /> -->
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import mixMap from '@admin/views/Secure/mixMap'
import store from './store'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyVideo',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixMap('3', store), CORE.mixLoop(), CORE.mixApiMenu()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),

  /**
   * 监听属性 (深度 deep 首次 immediate)
   */
  watch: {
    /**
     * 监听结构树就绪
     */
    readyTree() {
      // 默认选中根节点
      this.tree.length && this.toChange(this.tree[0])
    },
  },

  /**
   * 本地方法 (轻量重要在前)
   */
  methods: {
    /**
     * 点击切换
     */
    toChange(data) {
      this.map_infoParam.areaId = this.map_param.areaId = data.id
      this.video_startInfo()
    },
  },
}
</script>

<style lang="scss">
@import './index.scss';
</style>
